const todoList = require('../controllers/todoListController');

module.exports = (app) => {
    app.route('/tasks')
        .get(todoList.list_all_tasks);

    app.route('/tasks/:id')
        .get(todoList.read_a_task)
};